package com.rem.cloudalibaba.service.sentinel;

import lombok.extern.slf4j.Slf4j;

/**
 * 带有@SentinelResource注解  fallBack的异常处理类
 *
 * @author Rem
 * @date 2021-08-04
 */

@Slf4j
public class SentinelResourcesServiceFallback {

    /**
     * 必须是static 方法
     *
     * @param e
     * @return
     */
    public static String fallbackMethod2(Throwable e) {
        log.error("{0}", e);
        return "接口发生了异常2222222222222";
    }
}
